package com.ssyx.enums.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ssyx.enums.BillType;
import com.ssyx.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: ssyx-parent
 * @className: LeaderBill
 * @description: LeaderBill
 * @data: 2024/3/6 19:25
 * @author: ihu
 * @version: 1.0
 **/

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "LeaderBill")
@TableName("leader_bill")
public class LeaderBill extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "团长ID")
	@TableField("leader_id")
	private Long leaderId;
	
	@ApiModelProperty(value = "账单类型")
	@TableField("bill_type")
	private BillType billType;
	
	@ApiModelProperty(value = "业务编号")
	@TableField("business_no")
	private String businessNo;
	
	@ApiModelProperty(value = "交易时间")
	@TableField("bill_time")
	private Date billTime;
	
	@ApiModelProperty(value = "账单金额")
	@TableField("bill_amount")
	private BigDecimal billAmount;
	
	@ApiModelProperty(value = "账单编号")
	@TableField("bill_no")
	private String billNo;
	
	@ApiModelProperty(value = "账单描述")
	@TableField("bill_desc")
	private String billDesc;
	
	@ApiModelProperty(value = "交易前资金余额")
	@TableField("balance_before")
	private BigDecimal balanceBefore;
	
	@ApiModelProperty(value = "交易后资金余额")
	@TableField("balance_after")
	private BigDecimal balanceAfter;
	
	@ApiModelProperty(value = "账单状态")
	@TableField("bill_status")
	private Integer billStatus;
	
}